const mongoose = require('mongoose');
const { ObjectId } = mongoose.Schema;

/**
 * Export model definition object.
 */
module.exports = {
  projectId: { type: ObjectId, index: true },
  versionId: { type: ObjectId, index: true },
  fileId: ObjectId,
  functionId: { type: ObjectId, unique: true, index: true },
  nodes: Object,
  edges: Object,
  decisions: Object,
  branches: Object,
  callexpr: Array,
  invokes: Object,
  coveredFields: Object,
};
